Behaviors > The behavior API > deleteBehavior()

 

deleteBehavior()

Description

Undoes any edits performed by applyBehavior().

Note: Dreamweaver automatically deletes the function declaration and the event handler associated with a behavior when the user deletes the behavior in the Behaviors panel. Thus, it is necessary to define deleteBehavior() only if the applyBehavior() function performed additional edits on the user's document (for example, if it inserted a tag).

Arguments

applyBehaviorString

This argument is the string that was returned earlier by the applyBehavior() function.

Returns

Nothing.